package com.jtbd.dto;

import com.jtbd.dto.http.CampusHttpDto;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
@Schema(description = "校区创建请求")
public class CampusCreateHttpDto {
    @Schema(description = "校区信息")
    private CampusHttpDto campus;
    @Schema(description = "校区管理员 登录手机号")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式错误")
    @NotBlank(message = "手机号不能为空")
    private String phone;
}
